import java.applet.*;
import java.awt.*;

public class DrawLines extends Applet{
	int width,height;
	public void init(){
		width=getWidth();
		height=getHeight();
		setBackground(Color.red);
		setForeground(Color.blue);
	}
	public void paint(Graphics g){
		g.drawString("Lines",10,10);
		int x=width;
		while(height>0){
			g.drawLine(width-30,height-30,x,height-30);
			width=width-30;
			height=height-30;
		}
		showStatus("Lines Drawn");
	}
}
